<?php 
class CommFun{
	public static function objectToArray(&$object){
		$object =  json_decode( json_encode( $object),true);
        return  $object;
	}
}
?>